bin = ipc
cp = g++ -std=c++11 -g
src = $(wildcard *.cc)
obj = $(src:.cc=.o)
command1 = -c
command2 = -o
RM = rm -rf
$(bin):$(obj)
	@$(cp) $^ $(command2) $@
%.o:%.cc 
	@$(cp) $(command1) $< 


.PHONY:clean
clean:
	@$(RM) $(bin) $(obj)